package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SetmealMapper {
    void setSetmealAndCheckGroup(Map map);

    void add(Setmeal setmeal);

    Page<Setmeal> selectByCondition(String queryString);

    Setmeal findById(Integer id);

    List<Setmeal> getSetmeal();

    //用stemeal主键从中间表查询是否有
    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    void deleteAssociation(Integer id);

    void edit(Setmeal setmeal);

    void deleteById(Integer id);


    long findCountBySetmealId(Integer id);


    List<Map<String, Object>> findSetmealCount();
}
